//
//  HLBaseTableCtl.h
//  s.
//
//  Created by fanshijian on 2022/8/25.
//  Copyright © 2022 J. All rights reserved.
//

#import "BaseRequestController.h"
#import "MainSectionModel.h"
#import "BETableToCollectionModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseTableControl : BaseRequestController

@property (nonatomic, assign, readonly) UITableViewStyle style;

@property (assign, nonatomic) UIEdgeInsets tableInsets;
@property (copy, nonatomic, nullable) void (^tableLayoutBlock)(MASConstraintMaker *make);

@property (strong, nonatomic) NSArray <MainSectionModel *>* __nullable dataSources;

/// 容器视图背景色和header同色
@property (readonly, nonatomic) NSString *containerColor;

/// mj_footer 类，默认
@property (readonly, nonatomic) Class mj_footer_class;
@property (readonly, nonatomic) Class mj_header_class;

/// 是否支持下拉刷新
@property (readonly, nonatomic) BOOL can_pulldown;
/// 是否支持上拉加载
@property (readonly, nonatomic) BOOL can_pullup;

@property (readonly, nonatomic) UITableView *tableV;
- (void)reloadIfNeeded;
@end

NS_ASSUME_NONNULL_END
